package com.caocaog.market.finance.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.caocaog.market.finance.entity.FinanceGroupLineMerge;

import java.util.List;

public interface FinanceGroupLineMergeService extends IService<FinanceGroupLineMerge> {


    /**
     * 根据提现集ID获取提现行IDs
     */
    List<Long> getLineIds(Long groupId);


    /**
     * 新增提现行与集关联
     */
    Boolean mergeFinanceGroupLine(Long groupId, List<Long> lineIds);


    /**
     * 根据提现组id删除提现行与集关联
     */
    void deleteFinanceGroupLineMergeByGroupId(Long groupId);


    /**
     * 根据提现行ids删除提现行与集关联
     */
    void deleteFinanceGroupLineMergeByLineIds(Long... lineIds);

}
